﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebUI.Controllers.ErrorHandling>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        <%: Model.ExeptionTitle %>
    </h1>
    <div id="Message">
        <h2>
            <% if (Model.MyException != null && !string.IsNullOrEmpty(Model.MyException.Message))
               { %>
            <%: Model.MyException.Message %>
            <% } %>
        </h2>
        <br />
        <h3>
            <% if (Model.MyException.InnerException != null && !string.IsNullOrEmpty(Model.MyException.InnerException.Message))
               { %>
            <%: Model.MyException.InnerException.Message %>
            <% } %>
        </h3>
    </div>
</asp:Content>
